import json

dict_content={'name':"jack"}
with open('JSON文件写入.json', 'w')as f:
    json.dump(dict_content,f)
    